# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-zope-testing
pkgver=5.0.1
pkgrel=2
pkgdesc="Zope testing helpers"
arch=('any')
url="https://github.com/zopefoundation/zope.testing"
license=('ZPL')
depends=('python-setuptools' 'python-zope-interface' 'python-zope-exceptions')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.testing/archive/$pkgver.tar.gz")
sha512sums=('169ddd82d67f54988cac6cea719095ea7b1a0e59a1b51f63ab6bf15e785877fa060bac5c0786c26244a7630ec1b97011d0bb336c9177a8e6a911ccdb673eebba')

build() {
  cd zope.testing-$pkgver
  python setup.py build
}

check() {
  cd zope.testing-$pkgver
  python setup.py test
}

package() {
  cd zope.testing-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
